package com.celesea.auth.role.entity;

import com.celesea.framework.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;

@Table(name = "role_permission_mapping")
public class RolePermission extends BaseEntity {

    @Column(name = "`role_id`", columnDefinition = "角色Id")
    private String roleId;
    @Column(name = "`permission_code`", columnDefinition = "资源编码")
    private String permissionCode;

    public RolePermission() {
    }

    public RolePermission(String roleId, String permissionCode) {
        this.roleId = roleId;
        this.permissionCode = permissionCode;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(String permissionCode) {
        this.permissionCode = permissionCode;
    }
}
